package com.sb.hot.ext.convert;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.core.Ordered;

import javax.annotation.PostConstruct;

/**
 * @author 刘雄康
 * @version V1.0
 * @copyright 2020 CMB - Powered By 研发一部
 * @date 2021/04/21 23:19
 */
public class TestPP implements BeanFactoryPostProcessor, Ordered {

    @PostConstruct
    public void test() {
        System.out.println("testPP: static with @PostConstruct ");
    }

    @Override
    public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {
    }

    @Override
    public int getOrder() {
        return 0;
    }
}
